import service from "@/utils/service"

export function getStu(params) {
    return service({
        method: "post",
        url: '/students',
        data: params
    })
}

export function deleteStu(id) {
    return service({
        method: "delete",
        url: `/students/${id}`
    })
}

export function info(form) {
    return service({
        method: "post",
        url: '/students/info',
        data: form
    })
}

export function getInfo() {
    return service({
        method: "get",
        url: '/students/info'
    })
}

export function updateInfo(form) {
    return service({
        method: "put",
        url: '/students/info',
        data: form
    })
}
export function delInfo(name) {
    return service({
        method: "delete",
        url: `/students/info/${name}`
    })
}